package com.ontheroad.api.request;

import javax.validation.constraints.NotNull;

/**
 * Created by kedong on 2017/10/12 0012.
 */
public class TopicRequest extends Request {
    private static final long serialVersionUID = -4731008194655806590L;

    public interface detail {
    }

    public interface createTopic {
    }

    @NotNull(groups = {detail.class})
    private Integer topicId;

    /**
     * 话题名称关键字，搜索时用
     */
    private String key;

    /**
     * 话题名称
     */
    @NotNull(groups = {createTopic.class})
    private String name;

    /**
     * 话题描述
     */
    private String description;

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public Integer getTopicId() {
        return topicId;
    }

    public void setTopicId(Integer topicId) {
        this.topicId = topicId;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
